<?php
/**
 * 用户抽奖记录
 * User: Administrator
 * Date: 2019/2/23 0023
 * Time: 21:44
 */

namespace app\Lib\InterfaceIn\LotteryQualification;


use app\Lib\InterfaceIn\Present\Present;
use app\Lib\InterfaceIn\User\UserHandle;

interface RecordLottery
{
    /**
     * 设置手机号码
     * @param $mobilePhone
     *
     */
    public function setMobilePhone($mobilePhone);

    /**
     * 设置用户抽奖对象
     * @param UserHandle $user
     * @return mixed
     */
    public function setUser(UserHandle $user);

    /**
     * 设置中奖产品类
     * @param Present $present
     * @return mixed
     */
    public function setPresent(Present $present);

    /**
     * 执行代码
     * @return bool
     */
    public function run();

}